import React from 'react'
import store from '../redux/store'

export default function City(props) {
  var list = ['北京','上海','广州','深圳','通辽'];
  return (
    <ul>
        {list.map(item =>
            <li key={item} onClick={()=>{
                store.dispatch({
                    type:'change-city',
                    value:item
                })
                props.history.goBack();
            }}>{item}</li>)}
    </ul>
  )
}
